#!/usr/bin/bash

set -eux


mkdir -p /zion0/etc/ssh

cat > /zion0/etc/ssh/ssh_config <<"EOF"
Host *
  StrictHostKeyChecking no
EOF

workers=("node02" "node03" "mstor01" "mstor02")
for node in  ${workers[@]}
do
ssh root@${node}  bash /zion0/run_distccd_by_hostname.sh &
done

wait
